package vip.xiaonuo.modular.remoteapi.stairs;

import java.text.SimpleDateFormat;

public interface RemoteStairsConstant {

    public static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
    public static final SimpleDateFormat QRCodeDateFormat = new SimpleDateFormat("yyyyMMddHHmm");


    // 返回状态码
    public static class ResponseCode {

        public static String SUCCESS = "0"; //请求已成功处理
        public static String PROTOCOL_VERSION_MISMATC = "1";//协议版本不匹配
        public static String SERVICE_NOT_FOUND = "2";//没有请求对应的服务
        public static String ILLEGAL = "3";//请求数据包包含不合法字段
        public static String RECORD_EXCEEDS_LIMIT = "4";//记录超出上限
        public static String LACK_OF_RESOURCES = "5";//资源不足
        public static String THE_RECORD_ALREADY_EXISTS = "6";//该记录已在存
        public static String NO_SUCH_RECORD = "7";//没有此记录
        public static String UPGRADE_FAILED = "8";//升级失败

    }


    // 命令
    public static class RequestCmd {

        public static final String BROWSE_PERSONS = "browse persons"; //人员浏览(查询人员信息)
        public static final String REQUEST_PERSON = "request person";//单个人员查询
        public static final String ADD_PERSON = "add person";//添加人员
        public static final String UPDATE_PERSON = "update person";//修改人员
        public static final String DELETE_PERSON = "delete person";//删除人员

        public static final String CURRENT_DELETE_PERSON = "current delete person";//直接删除人员
        public static final String DELETE_ALL_PERSON = "delete all person";//删除人员


        public final static String REQUEST_DEVICE_PARAMS = "request device params";//获取设备参数
        public final static String UPDATE_DEVICE_PARAMS = "update device params";//修改设备参数
        public final static String RESTORE_DEFAULT = "restore default";//恢复出厂值请求
        public final static String DEVICE_RESTART = "device restart";//设备重启
        public final static String UPDATE_SYSTEM_TIME = "update system time";//修改系统时间
        public final static String BUIDING_CHANGE = "building change";// 建筑发生变更
        public final static String BUIDING_CHANGE_DELETE_PERSON_STEP1 = "building change delete person";// 建筑发生变更删除全部人员
        public final static String BATCH_ADD_PERSON = "batch add person";// 建筑发生变更新增另一个建筑全部人员
        public final static String SET_FIRE = "set fire";//消防

    }

    public static class CallBackCmd {

        public static final String HEART_BEAT = "heart beat";
        public static final String CARD_REPORT = "card report";
    }

    public static class ElevatorFiledStatus {

        public static final String SYNC = "1"; //已经同步
        public static final String NO_SYNC = "2"; //未同步
        public static final String CUR_SYNC = "3"; //同步中
    }

    public static class MemberSyncStatus {

        public static final String ADD = "1";//新增人员中

        public static final String SUCCESS = "3";//同步完成

        public static final String DELETE_ERROR = "4";//删除失败

        public static final String SYNC_ERROR = "5";

    }

    public static class DeviceSyncStatus {

        public static final String UN_SYNC = "0";// 未同步
        public static final String ADD = "1";//新增中
        public static final String DELETE = "2"; //删除中
        public static final String UPDATE = "3";//修改中
        public static final String SYNC_ERROR = "4";//同步失败
        public static final String SYNC_SUCCESS = "5";// 同步成功
    }
}
